<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
//教育背景表
class CreateEducationTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('education', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('pid');                  //pid 和user_personnels表关联
            $table->integer('uid');                  //用户id
            $table->string('school_name',50);     //学校名称
            $table->string('major',50);     //专业名称
            $table->string('education',20);     //学历
            $table->tinyInteger('is_unified')->default(1);     //是否统招 0表示否 1表示是
            $table->string('start_time',20);  //开始时间
            $table->string('over_time',20);   //结束时间
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('education');
    }
}
